package com.atmaowei.mapper;

import com.atmaowei.controller.request.TeacherPageRequest;
import com.atmaowei.entity.Course;
import com.atmaowei.entity.Teacher;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface TeacherMapper {

    public void save(Teacher teacher);

    List<Teacher> page(TeacherPageRequest teacherPageRequest);

    void delete(String tno);

    void update(Teacher teacher);

    Teacher getByTno(String tno);

    List<Course> getAllCourse();

    String getCnoByCname(String cname);

    String getTnameByTno(String tno);

    Course getCnameByCno(String cno);

    void deleteSelected(String tno);

    void statusChange(String tno, String status);
}
